package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Kucun;
import org.cangku.entity.Special;

import java.util.List;

public interface SpecialDao {
    /*条件查询*/
    public List<Special> query(@Param("sname") String sname, @Param("typeid") int typeid, @Param("sbrand") int sbrand, @Param("offset") int offset, @Param("limit") int limit);

    /*根据条件查询条件总数量*/
    public int getCountByTJ(@Param("sname") String sname,@Param("typeid") int typeid,@Param("sbrand") int shopid);
    //public List<Special> query(String sname,int flid,int bid,int offset,int limit);

    public int selectBysID(int sid);
    public int updateByTJjine(@Param("sid") int sid,@Param("tejia") double tejia);
    public int insert(Special special);

    public Special queryInfo(int sid);
}
